<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>批量加好友详情</title>
	<link rel="stylesheet" href="/layui/css/layui.css">
	<link rel="stylesheet" href="/hyqcss/public.css">
	<style type="text/css">
		body{
			background: #e9e9e9;
		}
		/*公共头部带搜索*/
		.public_container{
			margin: 20px;
			background: #fff;
		}
		.public_title_container{
			height: 54px;
			padding: 0 20px;
			font-size: 14px;
			display: flex;
			align-items: center;
			background: #f9f9f9;
			border-bottom: 1px solid #f0f0f0;
			justify-content: space-between;
		}
		.public_title_container a{
			fill: #999;
			color: #2f54eb;
			cursor: pointer;
		}
		.public_buttonSearch_container{
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 20px;
			background: #fff;
		}
		.public_Search_container{
			position: relative;
		}
		.public_Search_container input{
			width: 240px;
			height: 32px;
			border: 1px solid #d9d9d9;
		}
		.public_Search_container i{
			position: absolute;
			bottom: 6px;
			right: 10px;
			cursor: pointer;
		}
		/*公共头部带搜索 end*/
		.public_Search_content{
			display: flex;
		}
		.public_SearchSelect_content input{
			height: 32px;
		}
		.public_SearchSelect_content{
			margin-right: 10px;
		}
		.public_buttonSearch_content{
			display: flex;
			align-items: center;
		}
		.public_buttonSearch_content a{
			color: #fff;
			background-color: #2f54eb;
			text-shadow: 0 -1px 0 rgba(0,0,0,.12);
			height: 24px;
			padding: 4px 15px;
			font-size: 14px;
			border-radius: 2px;
			display: flex;
			align-items: center;
		}
		.public_buttonSearch_content span{
			color: rgba(0,0,0,0.65);
			background-color: #fff;
			height: 32px;
			padding: 4px 15px;
			font-size: 14px;
			border-radius: 2px;
			display: flex;
			align-items: center;
			border: 1px solid #d9d9d9;
			margin-left: 10px;
		}
		.public_buttonSearch_content p{
			font-size: 14px;
		}
		.public_buttonSearch_content p:first-child{
			color: rgba(18, 18, 22, 0.85);
			font-weight: 600;
		}
		.public_buttonSearch_content p:last-child{
			color: rgba(0,0,0,.45);
		}
		.public_buttonSearch_content b{
			height: 14px;
			background: #cdcdcd;
			width: 1px;
			margin: 0 8px;
		}
	</style>
</head>
<body>
	<form class="layui-form">
	<div class="public_container">
		<!-- /*公共头部带搜索*/ -->
		<div class="public_content">
			<div class="public_title_container">
				<p>批量加好友详情</p>
				<a href="javascript:history.back(-1)">
						<svg t="1599462684269" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8055" width="20" height="20"><path d="M501.2992 273.408l1.024-156.16L184.65792 379.904l314.29632 266.1376 0.95232-149.2992c313.86624 42.5984 178.29888 231.3216-0.5632 410.2144 619.5712-404.3776 251.01312-590.6432 1.95584-633.5488z" p-id="8056"></path></svg>
					</a>
			</div>
			<div class="public_buttonSearch_container">
				<div class="public_buttonSearch_content">
					<p>共{$totalNumber}个客户</p>
					<b></b>
					<p>已添加{$addNumber}个客户</p>
				</div>
				
				<!--<div class="public_Search_content">
					<div class="public_SearchSelect_content">
						<div class="layui-input-inline">
							添加状态：
						</div>
						<div class="layui-input-inline">
							<select name="status" lay-verify="required">
								<option value="">请选择状态</option>
								<option value="0">未添加成功</option>
								<option value="1">已添加成功</option>
							</select>
						</div>
					</div>
					<div class="public_Search_container">
						<input type="text" name="phone" placeholder="搜索电话" autocomplete="off" class="layui-input">
						<i class="layui-icon layui-icon-search"></i>
					</div>
				</div>-->
				
			</div>
		</div>
		</form>
		<!-- /*公共头部带搜索*/ end -->
		<!-- 公共表格部分 -->
		<div class="public_table_container">
			<table class="layui-table" lay-skin="line">
			  <colgroup>
			      <col>
			      <col>
			      <col>
			    </colgroup>
			    <thead>
			      <tr>
			        <th>客户电话</th>
			        <th>备注名</th>
			        <th>员工</th>
			        <!--<th>是否添加</th>-->
			        <th>添加状态</th>
			        <th>操作</th>
			      </tr> 
			    </thead>
			    <tbody>
				{loop $res as $r}
					<tr>
			        <td>{$r->phone}</td>
			        <td>{$r->remarks}</td>
			        <td>{$h->get_user_by_id($r->wid,$r->user_id)['name']}</td>
			       <!-- <td>未添加</td>-->
			        <td>{$r->add_status?'已添加成功':'未添加成功'}</td>
			        <td>
			        	<button type="button" class="layui-btn layui-btn-sm layui-btn-normal" onclick="remind_user({$r->id})">添加提醒</button>
			        </td>
			      </tr>
				{/loop}
			      <!--<tr>
			        <td>13148416151</td>
			        <td>备注</td>
			        <td>张鹏</td>
			        <td>未添加</td>
			        <td>未成功添加</td>
			        <td>
			        	<button type="button" class="layui-btn layui-btn-sm layui-btn-normal">添加提醒</button>
			        </td>
			      </tr>-->
			    </tbody>
			</table>
		</div>
		<!-- 公共表格部分 end-->
		<div class="main-container-h pageing-container-h">
		        <div class="pageing-content-h">
		           <span>{$p->totalnum}条/{$p->totalpage}页</span> 
		        </div>
				<ul class="pageing-content-h">
		           {P weidogsadmin}
				</ul>
	    </div>
	</div>
	
	<script src="/cdn/jquery.js"></script>
	<script src="/layui/layui.js"></script>
	<script src="/js/ajax.js"></script>
	<script type="text/javascript">
		layui.use('form', function(){
		  var form = layui.form;
		  	
		  //监听提交
		  form.on('submit(formDemo)', function(data){
		    layer.msg(JSON.stringify(data.field));
		    return false;
		  });
		  form.render('select');
		});
	</script>
	<script type="text/javascript">
		function remind_user(id){
			if(confirm('确定提醒吗？')){
				myAjaxPost(false, true, 'remind_user.html', { id:id}, function (resp) {
						if (resp.status == 'success') {
							tusi(resp.msg);
						}else{
							alert(resp.msg);
						}
					});
			}
		}
		
		// 复制的点击事件
		$('#copyText').click(function(){
			
		})
		// $('#openSecret').click(function(){
		// 	layer.open({
		// 	  type: 2,
		// 	  title: '请选择标签',
		// 	  shadeClose: true,
		// 	  shade: 0.2,
		// 	  area: ['500px', '300px'],
		// 	  content: 'secret.html'
		// 	}); 
		// })
	</script>
</body>
</html>